#include "PointMapItem.h"
#include "MapHandle.h"
#include "AbstractPointMapItem.h"

PointMapItem::PointMapItem()
: MapItem(MapItemType::Point)
{

}

PointMapItem::PointMapItem(const QPointF &pos)
: MapItem(MapItemType::Point)
{
	setPos(pos);
}

PointMapItem::~PointMapItem()
{

}

void PointMapItem::setSize(int size)
{
	dynamic_cast<AbstractPointMapItem*>(d_ptr)->setSize(size);
}

int PointMapItem::getSize() const
{
	return dynamic_cast<AbstractPointMapItem*>(d_ptr)->getSize();
}

void PointMapItem::setColor(const QColor &color)
{
	dynamic_cast<AbstractPointMapItem*>(d_ptr)->setColor(color);
}

const QColor& PointMapItem::getColor() const
{
	return dynamic_cast<AbstractPointMapItem*>(d_ptr)->getColor();
}

void PointMapItem::setStyle(PointStyle::Style style)
{
	dynamic_cast<AbstractPointMapItem*>(d_ptr)->setStyle(style);
}

PointStyle::Style PointMapItem::getStyle() const
{
	return dynamic_cast<AbstractPointMapItem*>(d_ptr)->getStyle();
}